<?php

	require ('class.pfTranslator.php');

	$content = file_get_contents('./'.$_GET['js'].'.js');
	
	$translator = new pfTranslator();
	$translator->setLang($_GET['lang']);
	$translator->setContent($content);
	switch ($_GET['type']){
		case 'calendar': $translator->translateCalendar(); break;
	}
	
	
	echo $translator->getContent();


?>